﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_MasterAdmin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["admin"] != null)
        {
            tblname.Text = Session["admin"].ToString();
            tbllogout.Text = "Log Out";
        }
        else
        {
            Response.Redirect("LoginAdmin.aspx");
        }
    }
    protected void tbllogout_Click(object sender, EventArgs e)
    {
        Session["Admin"] = null;
        Response.Redirect("LoginAdmin.aspx");
    }
    protected void tblname_Click(object sender, EventArgs e)
    {

    }
}
